package org.theqcp.wow.model.player;

import org.theqcp.wow.model.mechanics.ClassType;
import org.theqcp.wow.model.player.classes.shaman.Shaman;

public class PlayerFactory {

	public static Player createPlayer(ClassType playerClass) {
		
		Player p = null;
		
		if(ClassType.SHAMAN.equals(playerClass)) {
			p = new Shaman();
		} else {
			//create empty player instance
			p = new Player() {

				@Override
				public void recalc() {
					//call super
					super.recalc();
					
					//do nothing else for empty character
				}
				
			};
		}				
		
		//set class
		p.setClassType(playerClass);
		
		//return factoried instance
		return p;
	}
	
}
